package ooday02;

public class Person {
    public Person(String name, String address, int age) {
        this.name = name;
        this.address = address;
        this.age = age;
    }

    String name;
    String address;
    int age;



    void eat(){
        System.out.println(name+"吃饭");
    }
    void sleep(){
        System.out.println(name+"睡觉");
    }
    void sayHi(){
        System.out.println(name+"是我的名字"+"今年是"+age+"来自"+address);
    }
}
